﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Order_SelectPromotion" Codebehind="SelectPromotion.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <script type="text/javascript">
        function SelectPromotion(ctl)
        {
            var radios = document.getElementsByName("radio");
            var value="";
            if(radios.length>0)
            {
                for(var i=0;i<radios.length;i++)
                {
                    if(radios[i].checked)
                    {
                        value=radios[i].value;
                        break;
                    }
                }
                window.returnValue = value;
                window.close();
            }
            else
            {
                window.returnValue = value;
                window.close();
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:DataList ID="dlistPromotion" runat="server" OnItemDataBound="dlistPromotion_ItemDataBound">
            <ItemTemplate>
                <table>
                    <tr>
                        <td>
                            <input id="rdoSelect" name="radio" type="radio" value='<%# Eval("DJBH") + "$" + Eval("BYZD4") + "$" + Eval("ZK") + "$" + Eval("JE2") + "$" + Eval("SL") + "$" + Eval("BYZD6") + "$" + Eval("BYZD8")%>'/>
                        </td>
                        <td>
                            <input id="hidBYZD4" type="hidden" runat="server" value='<%# Eval("BYZD4")%>' />
                            <asp:Label ID="lblPromotionName" runat="server" Text='<%# Eval("HDMC")%>'></asp:Label>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList><br />
        <input id="btnSubmit" type="button" value="确定" onclick="SelectPromotion()" /></div>
    </form>
</body>
</html>
